#ifndef COMMENTITEMVIEW_H
#define COMMENTITEMVIEW_H

#include <QWidget>
#include <QPaintEvent>
#include <QPainter>
#include <QStyleOption>

#include "model/comment.h"

namespace Ui {
class CommentItemView;
}

class CommentItemView : public QWidget
{
    Q_OBJECT
    
public:
    explicit CommentItemView(Comment *comment, QWidget *parent = 0);
    ~CommentItemView();
    
    void paintEvent(QPaintEvent *);
private:
    void init();

    Ui::CommentItemView *ui;
    Comment *comment;
};

#endif // COMMENTITEMVIEW_H
